<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head id="cabecalho">
</h:head>
<h:body id="corpo">
	<fieldSet>
		<legend> Dados Pessoais</legend>
	<h:form id="form1">	
	 <h:messages></h:messages>
	<h:panelGrid>
		<h:outputText value="Nome" for="nome"></h:outputText>
		<h:inputText name="nome" id="nome" value="#{funcionario.nome}"></h:inputText>
		<h:outputText value="Endereço" for="endereco"></h:outputText>
		<h:inputText name="logradouro" id="logradouro" value="#{funcionario.endereco.logradouro}"></h:inputText>
		<h:outputText value="Bairro" for="bairro"></h:outputText>
		<h:inputText name="bairro" id="bairro" value="#{funcionario.endereco.bairro}"></h:inputText>
		<h:outputText value="Número" for="numero"></h:outputText>
		<h:inputText name="numero" id ="numero" value="#{funcionario.endereco.numero}"></h:inputText>
		<h:outputText value="CEP" for="cep"></h:outputText>
		<h:inputText name="cep" id="cep" value="#{funcionario.endereco.cep}"></h:inputText>
		<h:outputText value="Email" for="email"></h:outputText>
		<h:inputText name="email" id="email" value="#{funcionario.email}"></h:inputText>
		<h:outputText value="Senha" for="senha"></h:outputText>
		<h:inputSecret name="senha" id="senha" value="#{funcionario.senha}" required="true"></h:inputSecret>
		<h:outputText value="Confirma Senha" for="confirmaSenha"></h:outputText>
		<h:inputSecret name="confirmarSenha" id="confirmaSenha" value="#{funcionario.confirmaSenha}" required="true"></h:inputSecret>
		<h:outputText value=""></h:outputText>
		<h:selectOneMenu>
		
		</h:selectOneMenu>
		<h:inputText></h:inputText>
		<h:commandButton id="confirmarSenha" lable="Confirmar" action="#{funcionario.salvar}" value="Salvar"></h:commandButton>
	</h:panelGrid>
	</h:form>	
  </fieldSet>	
</h:body>
</html>